package com.wicket.okrframework.web.contorller;
import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrframework.biz.service.dto.req.*;
import com.wicket.okrframework.biz.service.dto.res.*;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrframework.biz.service.SystemTestDomainService;
import com.wicket.okrframework.common.util.CommonFunctionHelper;
import com.wicket.okrframework.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/base/systemTestDomain/")
public class SystemTestDomainController {
    @Autowired
    SystemTestDomainService  systemTestDomainService;
/**
   * D1-3-13查询单条就职记录详情(公共)
   */
    @PostMapping("querySingleInductionRecordIdDetailCom")
    public OkrResult<QuerySingleInductionRecordIdDetailComRespDto> querySingleInductionRecordIdDetailCom(@RequestBody @Validated QuerySingleInductionRecordIdDetailComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.querySingleInductionRecordIdDetailCom(reqDTO));
    }
/**
   * D1批量删个人账号测试
   */
    @PostMapping("batchDeleteUserTestData")
    public OkrResult<BatchDeleteUserTestDataRespDto> batchDeleteUserTestData(@RequestBody @Validated BatchDeleteUserTestDataReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.batchDeleteUserTestData(reqDTO));
    }
/**
   * D1批量删空间所有人员测试(公共)
   */
    @PostMapping("batchDeleteSpaceAllMemberTestDataCom")
    public OkrResult<BatchDeleteSpaceAllMemberTestDataComRespDto> batchDeleteSpaceAllMemberTestDataCom(@RequestBody @Validated BatchDeleteSpaceAllMemberTestDataComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.batchDeleteSpaceAllMemberTestDataCom(reqDTO));
    }
/**
   * D1删除空间测试
   */
    @PostMapping("deleteSpaceTestData")
    public OkrResult<DeleteSpaceTestDataRespDto> deleteSpaceTestData(@RequestBody @Validated DeleteSpaceTestDataReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.deleteSpaceTestData(reqDTO));
    }
/**
   * D1删除组织架构相关测试(公共)
   */
    @PostMapping("deleteSpaceOrgDataCom")
    public OkrResult<DeleteSpaceOrgDataComRespDto> deleteSpaceOrgDataCom(@RequestBody @Validated DeleteSpaceOrgDataComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.deleteSpaceOrgDataCom(reqDTO));
    }
/**
   * D1查询部门测试列表(公共)
   */
    @PostMapping("queryDeptTestDataListCom")
    public OkrResult<QueryDeptTestDataListComRespDto> queryDeptTestDataListCom(@RequestBody @Validated QueryDeptTestDataListComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.queryDeptTestDataListCom(reqDTO));
    }
}
  